<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plan_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-plan_id" data-rule="required" data-source="clothmaking_plan/index" class="form-control selectpage" name="row[plan_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detect_data')}:</label>
        <div class="col-xs-12 col-sm-8 input-group">
            <input id="c-detect_data" readonly data-rule="required" class="form-control" name="row[detect_data]" type="text">
            <span class="input-group-btn">
                <button type="button" class="btn btn-info" id="btn-edit-detect-data">编辑</button>
            </span>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<!-- 检测数据编辑弹窗 -->
<style>
#detectDataModal .modal-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}
#detectDataModal .modal-content {
    height: 100vh;
    border-radius: 0;
}
#detectDataModal .modal-body {
    overflow: auto;
    max-height: calc(100vh - 120px);
}
</style>
<div class="modal fade" id="detectDataModal" tabindex="-1" role="dialog" aria-labelledby="detectDataModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="detectDataModalLabel">编辑检测数据</h4>
      </div>
      <div class="modal-body">
        <table class="table table-bordered" id="detect-data-table">
          <thead>
            <tr>
              <th class="thickness_left">厚度(左)</th>
              <th class="thickness_center">厚度(中)</th>
              <th class="thickness_right">厚度(右)</th>
              <th class="density">密度</th>
              <th class="spring_back">回弹</th>
              <th class="surface_treatment">表面处理</th>
              <th class="width">宽度</th>
              <th class="length">米数</th>
              <th>硬度</th>
              <th>应力要求CFD (25%)</th>
              <th>外观</th>
              <th>标签打印选择模式</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
          </tbody>
        </table>
        <button type="button" class="btn btn-success" id="add-detect-row">新增记录</button>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="save-detect-data">保存</button>
      </div>
    </div>
  </div>
</div>
